import http from "./request"; //记得引入进来

class SearchService extends http {
  constructor() {
    super();
    this.baseUrl = "/supervisor"
  }
// 获取层次的大学
  GetUniversity(body) {
    return this.http({
      method: "post",
      url: "/GetUniversity",
      body,
    }, {
      loading: true
    });
  }
  // 根据大学获取学院
  GetDepartment(body) {
    return this.http({
      method: "post",
      url: "/GetDepartment",
      body,
    }, {
      loading: true
    });
  }
    // 根据大学,学院获取导师列表
    GetSupervisor(body) {
      return this.http({
        method: "post",
        url: "/GetSupervisor",
        body,
      }, {
        loading: true
      });
    }
    // 根据大学，学院，导师获取评论
    GetReview(body) {
      return this.http({
        method: "post",
        url: "/GetReview",
        body,
      }, {
        loading: true
      });
    }
      
}

export default new SearchService();